package com.foreknow.demo4;

public class Penguin extends Pet {

    @Override
    public void cure() {
        if (this.getHealth() < 50) {
            this.setHealth(60);
            System.out.println("吃药......");
        }
    }

    @Override
    public void eat() {
        System.out.println("12222222222222222");

    }

    public void swimming(){
        System.out.println("swimming......");
    }
}